package com.yilong.wei.app.service.impl;

import com.yilong.wei.app.controller.CountryController;
import com.yilong.wei.app.dao.FileMapper;
import com.yilong.wei.app.domain.FileDO;
import com.yilong.wei.app.service.FileService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class FileServiceImpl implements FileService {

    private static final Logger logger = LoggerFactory.getLogger(FileServiceImpl.class);

    @Autowired
    private FileMapper fileMapper;

    @Override
    public FileDO get(Long id) {
        return fileMapper.get(id);
    }

    @Override
    public List<FileDO> list(Map<String, Object> map) {
        return fileMapper.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return fileMapper.count(map);
    }

    @Override
    public int save(FileDO sysFile) {
        return fileMapper.save(sysFile);
    }

    @Override
    public int update(FileDO sysFile) {
        return fileMapper.update(sysFile);
    }

    @Override
    public int remove(Long id) {
        return fileMapper.remove(id);
    }

    @Override
    public int batchRemove(Long[] ids) {
        return fileMapper.batchRemove(ids);
    }

    @Override
    public Boolean isExist(String url) {
        return null;
    }

    @Override
    public List<FileDO> findFileByMap(Map map) {
        return fileMapper.findFileByMap(map);
    }
}
